package com.haiyou.data.game.report;

import com.haiyou.common.entity.PlayerEntity;
import com.haiyou.common.jdbc.DbType;
import com.haiyou.data.common.cache.redis.redisson.annotation.RDatabase;
import com.haiyou.data.common.persister.mysql.annotation.Database;
import com.haiyou.data.common.persister.mysql.annotation.Id;
import com.haiyou.data.common.persister.mysql.annotation.Table;
import com.haiyou.data.common.persister.mysql.annotation.Table.RollPolicy;
import com.haiyou.data.common.persister.mysql.persister.roll.RollEntity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@NoArgsConstructor
@AllArgsConstructor
@ToString
@Setter
@Getter
@Database(alias = DbType.GAME_DB)
@RDatabase(alias = DbType.GAME_DB)
@Table(name = "t_u_report",rollPolicy = RollPolicy.EVERY_DAY)
public class ReportLog extends RollEntity<String> implements PlayerEntity<String>{
	
	private static final long serialVersionUID = -3701575226815999165L;
	@Id
	private String id;
	/**
	 * 玩家id
	 */
	private long playerId;
	
	/**
	 * 广告打开次数
	 */
	private long advTimes; 
	/**
	 * 登录次数
	 */
	private long loginTimes; 
}
